<table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
    <thead>
    <tr>
        <th>STT</th>
        <th>Name</th>
        <th>Cate Parent</th>
        <th>Description</th>
        <th>Function</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <?php if($list_cate != NULL){ ?>
        <?php $i=1; foreach($list_cate as $data){ ?>
        <td style="text-align: center;"><?php echo $i; ?></td>
        <td class="center" style="text-align: center;"><?php echo $data['cate_name']; ?></td>
        <td class="center" style="text-align: center;"><?php foreach($list_cate_parent as $value){
                if($data['cate_parent'] == $value['cate_id']){
                    echo $value['cate_name'];
                }
            }?></td>
        <td class="center" style="width: 400px;"><?php echo $data['cate_description']; ?></td>

        <td class="center">
            <a class="btn btn-success" href="<?php echo base_url()?>admincp/category/moveCategory/<?php echo $data['cate_id'] ?>">
                <i class="glyphicon glyphicon-move icon-white"></i>
                Move
            </a>
            <a class="btn btn-info" href="<?php echo base_url()?>admincp/category/updateCategory/<?php echo $data['cate_id'] ?>">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Edit
            </a>
            <a class="btn btn-danger" href="<?php echo base_url()?>admincp/category/deleteCategory/<?php echo $data['cate_id'] ?>">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                Delete
            </a>
        </td>
    </tr>
    <?php $i++; } } ?>
    </tbody>
</table>
<div class="pagination-list"><?php echo $this->pagination->create_links(); ?></div>